<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>To-Do Lists</title>
        <style>
			@import url("css/general.css");
        </style>
    </head>
    <body>
        <div id="main">
            <div id="header">
                <div id="btnHome">
                    <img src="img/icoInicio.png" alt="home" title="Go to home" />
                </div>
                <div id="titleBar">
                    Welcome!
                </div>
                <div id="btnOptions">
                    <img src="img/icoMenu.png" alt="menu" title="Menu"/>
                </div>
            </div>
            <div id="wrapper">
                <form id="formulario" action="javascript:login(document.forms.formulario);">
                    <p>
                        Please enter your user and password
                    </p>
                    <input type="text" placeholder=" User" name="user"/>
                    <br />
                    <input type="password" placeholder="Password" name="pass"/>
                    <br />
                    <input class="boton" type="submit" value="login"/>
                    <br />
                </form>
            </div>
        </div>
        <script type="text/javascript">
			function login(form) {
				if (form.user.value == 'juan' && form.pass.value == 'juan') {
					location.href = "taskList.html";
				}
				else{
				    alert("ooopss");
				}
			}

        </script>
    </body>
</html>
